home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / Sample Editors⁄Viewers / Text Editor / Source / CompDefs.h next >
Encoding:
C/C++ Source or Header  |  1995-12-13  |  1.4 KB  |  62 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        CompDefs.h
  3.  
  4.     Contains:    Defines for compiling OpenDoc parts.
  5.  
  6.     Written by:    Steve Smith
  7.     
  8.     Copyright:    © 1994-1995 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11. #ifndef _COMPILERDEFS_
  12. #define _COMPILERDEFS_
  13.     
  14. // Just before you are ready to ship, uncomment the line below.
  15. // Doing so will remove all the SampleCode_SamplePartMethodDebug()
  16. // lines from the generated code.
  17. // Note: The _RETAIL switch can be found in somcdev.h
  18. //#define _RETAIL
  19.  
  20. // Enabling switches in Textension interfaces.
  21. #ifndef txtnRulers
  22. #define txtnRulers
  23. #define txtnMultiFrames
  24. #endif
  25.  
  26. // We should no longer be using the "old" routine names/structs.
  27. #ifndef OLDROUTINENAMES
  28. #define OLDROUTINENAMES 0
  29. #endif
  30. #ifndef OLDROUTINELOCATIONS
  31. #define OLDROUTINELOCATIONS 0
  32. #endif
  33.     
  34. // Some public headers #ifdef out structs not useful to other platforms.
  35. #ifndef _PLATFORM_MACINTOSH_
  36. #define _PLATFORM_MACINTOSH_ 1
  37. #endif
  38.  
  39. // If you use the STDTypIO utility, you must define the platforms
  40. // endian-ness.
  41. #ifndef _PLATFORM_BIG_ENDIAN_
  42. #define _PLATFORM_BIG_ENDIAN_ 1
  43. #endif
  44.  
  45. #ifdef _RETAIL
  46.     // Must be defined because we are using Except.cpp & ODDebug.cpp.
  47.     #ifndef ODDebug
  48.     #define ODDebug 0
  49.     #endif
  50.     
  51.     #pragma error "Why isn't this working???"
  52. #else
  53.     // Must be defined because we are using Except.cpp & ODDebug.cpp.
  54.     #ifndef ODDebug
  55.     #define ODDebug 1
  56.     #endif
  57.     
  58.     #pragma traceback on
  59. #endif
  60.  
  61.  
  62. #endif